<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:form>
	
		<c:if test="${empty crmohListaBean.crmohLista}">
			<rich:panel>
				<div align="center">
				<h:graphicImage value="/img/info.gif" /><h:outputLabel
					value="#{resourceApp.crmoh_sin_info}" />
				</div>
			</rich:panel>
		</c:if>
			
		<c:if test="${!empty crmohListaBean.crmohLista}">
			<rich:spacer height="15"></rich:spacer>
			<rich:spacer></rich:spacer>
			<rich:spacer></rich:spacer>
			<rich:panel>
				<f:facet name="header">
					<h:outputText value="#{resourceApp.crmoh_titulo_lista}"></h:outputText>
				</f:facet>
	
				<rich:spacer></rich:spacer>
				<!--  <rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5">-->
				<rich:dataTable id="idTablaHistorico" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
					onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
					cellpadding="0" cellspacing="0" width="100%" border="0" value="#{crmohListaBean.crmohLista}" 
					var="moh" rows="20">		
					<rich:column sortBy="#{moh.movfec}" filterBy="#{resourceApp.crmoh_movfec}" filterEvent="onkeyup">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmoh_movfec}"></h:outputText>
						</f:facet>
						<h:outputText value="#{moh.movfec_s}"></h:outputText>
					</rich:column>
					<rich:column sortBy="#{moh.movtrn}" filterBy="#{resourceApp.crmoh_movtrn}" filterEvent="onkeyup">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmoh_movtrn}"></h:outputText>
						</f:facet>
						<h:outputText value="#{moh.movtrn}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movcon}">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmoh_movcon}"></h:outputText>
						</f:facet>
						<h:outputText value="#{moh.movcon}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movffh}">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmoh_movffh}"></h:outputText>
						</f:facet>
						<h:outputText value="#{moh.movffh_s}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movfap}">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmoh_movfap}"></h:outputText>
						</f:facet>
						<h:outputText value="#{moh.movfap_s}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movvin}">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmoh_movvin}"></h:outputText>
						</f:facet>
						<h:outputText value="#{moh.movvin}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movtas}">
						<f:facet name="header"><h:outputText value="#{resourceApp.crmoh_movtas}"></h:outputText></f:facet>
						<h:outputText value="#{moh.movtas}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movnci}">
						<f:facet name="header"><h:outputText value="#{resourceApp.crmoh_movnci}"></h:outputText></f:facet>
						<h:outputText value="#{moh.movnci}"/>
					</rich:column>
					<rich:column sortBy="#{moh.movttr}">
						<f:facet name="header"><h:outputText value="#{resourceApp.crmoh_movttr}"></h:outputText></f:facet>
						<h:outputText value="#{moh.movttr}"/>
					</rich:column>
					<rich:column headerClass="encabezadoCol"> 
						<f:facet name="header">
							<h:outputText value="#{resourceApp.lbl_accion}" />
						</f:facet>
						<h:panelGrid columns="4">
							<a4j:commandLink action="#{crmohListaBean.visualizar}">
								<f:param name="RRN" value="#{listaResultadoTabla.RRN}" />
								<h:graphicImage value="/imagenes/icons/masInfo.gif" title="Visualizar"/>
							</a4j:commandLink>
						</h:panelGrid>
					</rich:column>	
				</rich:dataTable>
				<rich:spacer height="30" />
				<rich:datascroller align="center"  for="idTablaHistorico" maxPages="20" />
      	</rich:panel>
		</c:if>
	</h:form>
</ui:composition>
</html>
